package com.atguigu.team.domain;

import com.atguigu.team.service.Status;

public class Designer extends Programmer {
	
	private double bonus;
	
	public Designer() {}
	
	public Designer(int id, String name, int age, double salary,int memberid, Status status,Equipment equipment, double bonus) {
		super(id, name, age, salary, memberid, status, equipment);
		this.bonus = bonus;
	}
 
	public double getBonus() {
		return bonus;
	}
 
	public void setBonus(double bonus) {
		this.bonus = bonus;
	}
 
	@Override
	public String toString() {
		return say() + "\t" + "设计师" + "\t" + getStatus() + "\t" + (int)bonus + "\t\t" + getEquipment();
	}
	
	public String toString2() {
		return getMemberId() + "/" + say() + "\t设计师" + "\t" + (int)bonus;
	}
}
